package src.ten;

import java.util.HashMap;
import java.util.Map;

public class MapDemo {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<String,String>();
        map.put("1","apple");
        map.put("2","pear");
        map.put("3","orange");
        for (int i = 1; i <= map.size(); i++) {
            System.out.println("第"+i+"元素是："+map.get(""+i+""));
        }
    }
}
